package ys.mihoyo.ymcc.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class RegParamDto {

    @NotNull(message = "图形验证码不能为空")
    private String imageCode;//	"111"
    @NotNull(message = "手机号不能为空")
    @Pattern(regexp = "^(0|86|17951)?(13[0-9]|15[012356789]|17[678]|18[0-9]|14[57])[0-9]{8}$",message = "手机号格式不正确")
    private String mobile;//	"18244444456"
    @NotNull(message = "密码不能为空")
    @Size(min = 6,max = 18)
    private String password;//	"123456"
    private Integer regChannel;//	1
    @NotNull(message = "手机验证码不能为空")
    private String smsCode;//	"123454"
}
